package com.xxxy.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.xxxy.blockhandler.HotspotBlockhandler;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HotspotBlockHandler {
    @GetMapping("/hotspot")
    @SentinelResource(value = "getHotResource", blockHandler = "getHotspotBlockHandler",
    blockHandlerClass = HotspotBlockhandler.class)


    public String getHotspot(@RequestParam(value  = "type",required = false) String type,
                             @RequestParam(value = "size",required = false)String size){
        return "进入热点";
    }
}
